#-*- coding: utf-8 -*-
import datetime

from django.db import models
from stdimage import StdImageField


# Create your models here.
class Article(models.Model):
    owner = models.CharField(max_length=42)
    room = models.CharField(max_length=5)
    title = models.CharField(max_length=100)
    description = models.TextField(null=True)
    mail = models.EmailField()
    tel = models.CharField(max_length=10)
    date = models.DateField("Date", auto_now_add=True)
    image = StdImageField(upload_to='catalog_photos/', size=(320, 240))
    isValidatedByAdmin = models.BooleanField()
 
    def __unicode__(self):
        return self.title